package com.banana.manager.forest.entity.chemical;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDate;
import java.util.List;

@TableName("disburse_info")
@Getter
@Setter
@NoArgsConstructor
@ToString
public class DisburseBean {

    @TableId(value = "disburse_id",type = IdType.AUTO)
    private Integer disburseId;

    @TableField("disburse_class")
    private String disburseClass;
    @TableField("disburse_user")
    private String disburseUser;
    @TableField("disburse_date")
    private LocalDate disburseDate;
    @TableField(exist = false)
    private List<OutBean> outBeans;

    public DisburseBean(String disburseClass, String disburseUser, LocalDate disburseDate, List<OutBean> outBeans) {
        this.disburseClass = disburseClass;
        this.disburseUser = disburseUser;
        this.disburseDate = disburseDate;
        this.outBeans = outBeans;
    }

    public DisburseBean(String disburseClass, String disburseUser, LocalDate disburseDate) {
        this.disburseClass = disburseClass;
        this.disburseUser = disburseUser;
        this.disburseDate = disburseDate;
    }
}
